<?php
namespace app\app\controller;

use think\Db;

class Index extends Common
{
    public function index()
    {
        return 'hi';
    }

    public function hello($name = 'ThinkPHP5')
    {
        return 'hello,' . $name;
    }

    function noDownUrl(){
        if($list = Db::name('yoo_video')->field('id,vid,shareUrl')->whereOr("downUrl is NULL or downurl = ''")->where("is_delete=0")->limit(5)->select()){
            $this->fmtResult(0, $list);
        }
        $this->fmtResult(1,[],'没有了');

    }

    function ajaxheader(){
        return $this->fetch();
    }
}
